import * as THREE from "three"

export const initLights = () => {
  const lights = []

  lights.push(new THREE.HemisphereLight(0xffffff, 0x8d8d8d, 3))


  const dir_light = new THREE.DirectionalLight(0xffffff, 3);
  dir_light.position.set(- 3, 10, - 10);
  dir_light.castShadow = true;
  dir_light.shadow.camera.top = 4;
  dir_light.shadow.camera.bottom = - 4;
  dir_light.shadow.camera.left = - 4;
  dir_light.shadow.camera.right = 4;
  dir_light.shadow.camera.near = 0.1;
  dir_light.shadow.camera.far = 40;
  // dir_light.position.set(100, 100, 100);
  // dir_light.position.multiplyScalar(1);
  // dir_light.castShadow = true;
  // dir_light.shadow.mapSize = new THREE.Vector2(1024, 1024);
  // lights.push(new THREE.DirectionalLightHelper(dir_light, 5));
  lights.push(dir_light)

  return lights
}
